<include file="application/walletyhbbadmin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>产品中心</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>产品列表<a href="{:U('finance/add')}" class="actionBtn add">添加</a></h3>
    <div class="filter">
<!--    <form action="{:U('Finance/index')}" method="post">-->
<!--    选择分类: <select name="type_id" id="">-->
<!--                      <option value="">全部</option>-->
<!--                      <foreach name='arr' item='vc'>-->
<!--                      <option value="{$vc.id}">{$vc.name}</option>-->
<!--                      </foreach>-->
<!--                    </select>-->
<!--     &nbsp;用户:&nbsp;<input class="inpMain" placeholder="用户姓名" name="email" value="{$get.name}" id=" " type="text">-->
<!--     <input name="submit" class="btnGray" type="submit" value="搜索" />-->
<!--    </form>-->
    </div>
        <div id="list">
    <form name="action" method="post" action="product.php?rec=action">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
      <th style="text-align:center;">编号</th>
      <th style="text-align:center;">类型</th>
      <th style="text-align:center;">分类名称</th>
      <th style="text-align:center;">名称</th>
      <th style="text-align:center;">图片</th>
      <th style="text-align:center;">是否首页显示</th>
      <th style="text-align:center;">操作</th>
    </tr>
     <foreach name="list" item="vo">
        <tr>
            <td align="center">{$vo.ct_id}</td>
            <td align="center">{$vo.pname}</td>
            <td align="center">{$vo.name}</td>
            <td align="center">{$vo.ct_name}</td>
            <td align="center"><img src="{$vo.ct_pic}" alt="" style="width: 150px;"> </td>
            <td align="center">
                <eq name="vo.status" value="1"><使用></使用>
                    <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('finance/updateStatus1',array('id'=>$vo.ct_id,'status'=>'0'))}" style="color:#fff">关闭</a>&nbsp;</span>
                </eq>
                <eq name="vo.status" value="0">关闭
                    <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('finance/updateStatus1',array('id'=>$vo.ct_id,'status'=>'1'))}" style="color:#fff">使用</a>&nbsp;</span>
                </eq>
            </td>
            <td align="center">
                <a href="edit/id/{$vo.ct_id}" class="tablelink1">查看详情</a>
                <a href="del/id/{$vo.ct_id}" class="tablelink2 del">删除</a>
        </tr>
    </foreach>
           
          </table>
    </form>
    </div>
    <div class="clear"></div>
    <div class="pager">
        <ul>{$page}</ul>
    </div>
    </div>
 </div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
<script type="text/javascript">

onload = function()
{
 document.forms['action'].reset();
}

function douAction()
{
 var frm = document.forms['action'];
 frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
}

</script>
</body>
</html>
